//
//  InChannelCollectionViewCell.m
//  Inner  Voice
//
//  Created by Martin.Wang on 16/2/29.
//  Copyright © 2016年 徐海宇. All rights reserved.
//

#import "InChannelCollectionViewCell.h"

@implementation InChannelCollectionViewCell

- (void)awakeFromNib {
    
    
    
}

- (void)loadImageWithStr:(NSString*)str{
    
    NSURL *url = [NSURL URLWithString:str];
    //    给imaageView加载网络图片，之前先用1.jpg
    [self.channelImage sd_setImageWithURL:url placeholderImage:[UIImage imageNamed:@"1.jpg"]];
    //    圆角
    self.channelImage.layer.cornerRadius = 8;
    self.channelImage.layer.masksToBounds = YES;
    [self.channelImage.layer setBorderWidth:2];
    [self.channelImage.layer setBorderColor:(__bridge CGColorRef _Nullable)([UIColor blueColor])];
    self.channelImage.contentMode = UIViewContentModeScaleAspectFill;
}

@end
